<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<s:include value="/WEB-INF/content/common/header.jsp" />

<div class="row well">
	<h4>Add Individual</h4>
</div>


<s:form action="saveEmployee" role="form" id="addForm"
	cssClass="form-horizontal col-sm-4" namespace="/employee"
	enctype="multipart/form-data" theme="bootstrap">
	
	<s:textfield label="Id" name="employee.id" />

	<s:textfield label="Name" name="employee.name" />

	<sj:datepicker label="Date of Birth" id="dateOfBirth" name="employee.dateOfBirth"
		changeMonth="true" changeYear="true" yearRange="1940:" />

	<s:textfield label="NIC" name="employee.nic" />

	<s:radio label="Gender" name="employee.gender" id="gender"
		list="#{'1':'Male','2':'Female'}" onChange="genderChange(this.value)" />
		
	<s:textfield label="Employee Number" name="employee.employeeNo" />

	<s:textfield label="Designation" name="employee.designation" />
	
	

	<s:textarea label="Permenent Address" rows="2"
		name="employee.permenentAddress" />

	<s:textarea label="Mailing Address" rows="2"
		name="employee.mailingAddress" />

	<s:textfield label="Telephone" name="employee.telephone" />

	<s:textfield label="Email" name="employee.email" />

	


	<%-- <s:textfield label="CONFIRM PASSWORD" name="confirmPassword" tooltip="Retype password here" />

		<s:select label="USER TYPE" name="userLogin.userType" tooltip="Select user type" headerKey="-1" headerValue="Select user type" 
			list="#{'admin':'Admin', 'user':'User', 'generalUser':'General User'}" /> --%>

	<sj:submit value="Add" class="btn btn-primary btn-sm" formIds="addForm" />
	<s:reset value="Cancel" class="btn btn-primary btn-sm" />


</s:form>

<script type="text/javascript">
	function genderChange(value) {
		var gendervalue;
		genderValue = value;
		alert(gendervalue);

	}
</script>







<s:include value="/WEB-INF/content/common/footer.jsp" />







<s:include value="/WEB-INF/content/common/footer.jsp" />